package com.sky.mapper.user;

import com.sky.pojo.Dish;
import com.sky.vo.DishVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserDishMapper {
//    @Select("select * from dish d join category c on d.category_id = c.id where d.category_id = #{categoryId} and d.status = #{status}")
    @Select("select * from dish where category_id = #{categoryId} and status = #{status} ")
    List<Dish> findByCategoryId(Dish dish);
}
